# chat/views.py
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status

class ChatRoomView(APIView):
    def get(self, request, room_name):
        # 这里可以添加验证逻辑
        return Response({'room_name': room_name}, status=status.HTTP_200_OK)